package java基础.struct;

/**
 * @author IT_Jay
 * @date 2021/12/12 18:40
 */

public class Demo09 {
    public static void main(String[] args) {
        //1+2+3+。。。。+100=？
        int i = 0;
        int sum = 0;
        while (i<=99){
            i++;
            sum = sum + i;
        }
        System.out.println(sum);
    }
}
